﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Login.aspx.cs" Inherits="Login" Title="ILE Login" ValidateRequest="false" %>

<%@ Register TagPrefix="uc" TagName="UpdateProgress" Src="~/UserControls/UpdateProgress.ascx" %>
<%@ Register TagPrefix="uc" TagName="ModalPopupMessage" Src="~/UserControls/ModalPopupMessage.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">
    <uc:UpdateProgress ID="updateProgress" runat="server" />
    <script type="text/javascript">
        if (!navigator.cookieEnabled)
        {
            alert("Your Browser does not support cookies or cookie has been disabled. Please enable cookies. Instructions can be found on our help page.");
            window.location.href = "Help.aspx";
        }
    </script>
    <div style="margin-left: auto; margin-right: auto; width: 600px;">
        <ajaxToolkit:TabContainer ID="TabContainerLogin" runat="server" ActiveTabIndex="0"
            Width="600">
            <ajaxToolkit:TabPanel ID="TabPanelInstitutLogin" runat="server" HeaderText="For WSU Students & Instructors">
                <HeaderTemplate>
                    <%-- *** Change "WSU" to your institution's name --%>
                    [Your institution name here] Login
                </HeaderTemplate>
                <ContentTemplate>
                    <asp:UpdatePanel ID="UpdatePanelInstitutLogin" runat="server">
                        <ContentTemplate>
                            <uc:ModalPopupMessage ID="ModalPopupMessage" runat="server" />
                            <asp:Login ID="Institut_Login" runat="server" BorderPadding="4" Font-Names="Verdana"
                                FailureText="Your login attempt failed, please try again." ForeColor="#333333"
                                OnAuthenticate="Institut_Login_Authenticate" HelpPageUrl="~/Help.aspx" HelpPageText="Help">
                                <TextBoxStyle Font-Size="0.8em" ForeColor="Black" Font-Bold="true" CssClass="fancyTextBox" />
                                <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
                                <LayoutTemplate>
                                    <div style="margin: auto;">
                                        <table id="TABLE1" style="width: 550px;">
                                            <tr>
                                                <td colspan="2" align="center">
                                                    <h3 align="center">
                                                        <%-- *** --%>
                                                        ILE Login for [Your institution name here] Students and Instructors</h3>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    <%-- *** --%>
                                                    [Your institution name here] Network ID :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="UserName" runat="server" ForeColor="Black" Font-Size="12pt" Font-Bold="true"
                                                        Width="200px" MaxLength="100" CssClass="fancyTextBox" TabIndex="1"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserName"
                                                        ErrorMessage="WSU Network ID is required." ToolTip="User Name is required." ValidationGroup="Institut_Login">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    Password :
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="Password" runat="server" ForeColor="Black" Font-Size="13pt" Font-Bold="true"
                                                        TextMode="Password" Width="200px" MaxLength="100" CssClass="fancyTextBox" TabIndex="2" />
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password"
                                                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Institut_Login">*</asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="text-align: center;">
                                                    <%-- *** --%>
                                                    <asp:CheckBox ID="RememberMe" runat="server" Text="Remember My [Your institution name here] Network ID." TabIndex="3" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" style="text-align: center; color: Red;">
                                                    <asp:LinkButton ID="lnkbtnLoginProblemHelp" runat="server" Visible="false" Font-Italic="true" ForeColor="Red" Font-Size="Medium">Having trouble Logging in?</asp:LinkButton>
                                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="Institut_Login"
                                                        DisplayMode="BulletList" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2" align="center" style="height: 27px">
                                                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login" ValidationGroup="Institut_Login"
                                                        Width="200px" CssClass="fancyButton" TabIndex="5" />
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </LayoutTemplate>
                            </asp:Login>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <%-- *** --%>
            <ajaxToolkit:TabPanel ID="TabPanelNonInstitutLogin" runat="server" HeaderText="For Non-[Your institution name here] Students">
                <HeaderTemplate>
                    <%-- *** --%>
                    Non-[Your institution name here] Students Login
                </HeaderTemplate>
                <ContentTemplate>
                    <asp:UpdatePanel ID="UpdatePanelNonInstitutLogin" runat="server">
                        <ContentTemplate>
                            <asp:Login ID="NonInstitut_Login" runat="server" BorderPadding="4" Font-Names="Verdana"
                                ForeColor="#333333" OnAuthenticate="NonInstitut_Login_Authenticate" FailureText="Your login attempt was not successful. Please try again.">
                                <TextBoxStyle Font-Size="0.8em" />
                                <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
                                <LayoutTemplate>
                                    <table id="TABLE1" style="width: 550px;">
                                        <tr>
                                            <td colspan="2" align="center">
                                                <h3>
                                                    <%-- *** --%>
                                                    ILE Login for Non-[Your institution name here] Students &amp; Guests</h3>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="text-align: right;">
                                                Email Address :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="UserName" runat="server" ForeColor="Black" Font-Size="12pt" Font-Bold="true"
                                                    Width="200px" MaxLength="100" CssClass="fancyTextBox" TabIndex="1" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="UserName"
                                                    ErrorMessage="Email Address is required." ToolTip="User Name is required." ValidationGroup="NonInstitut_Login"
                                                    Display="Dynamic">*</asp:RequiredFieldValidator>
                                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="UserName"
                                                    ErrorMessage="Not a vaild email address" Display="Dynamic" ValidationGroup="NonInstitut_Login"
                                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right">
                                                Password :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Password" runat="server" ForeColor="Black" Font-Size="12pt" Font-Bold="true"
                                                    TextMode="Password" Width="200px" MaxLength="100" CssClass="fancyTextBox" TabIndex="2" />
                                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="Password"
                                                    ErrorMessage="Password is required." Display="Dynamic" ToolTip="Password is required."
                                                    ValidationGroup="NonInstitut_Login">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" style="text-align: center;">
                                                <asp:CheckBox ID="RememberMe" runat="server" Text="Remember My Email Address." />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" style="text-align: center;">
                                                <i>Forgot Your Password? Click <a href="PasswordRecovery.aspx">Here</a>.</i>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" style="text-align: center; color: Red;">
                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="NonInstitut_Login"
                                                    DisplayMode="BulletList" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2" align="center" style="height: 27px">
                                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login" ValidationGroup="NonInstitut_Login"
                                                    Width="150px" ForeColor="Black" />
                                                &nbsp;&nbsp;
                                                <asp:Button ID="btnSignUp" runat="server" Text="Create Account" Width="150" PostBackUrl="~/SignUp.aspx" />
                                            </td>
                                        </tr>
                                    </table>
                                </LayoutTemplate>
                            </asp:Login>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
        <br />
        <br />
        <div style="min-width: 400px; text-align: center;">
            <%-- *** Modify the Contact Email Address--%>
            <img src="Images/contact-us-button.png" alt="Contact Us" title="Contact Us" style="cursor: pointer;" onclick="window.location.href = 'mailto:[Your contact info here]';" />
        </div>
    </div>
</asp:Content>
